package week10;

import java.util.Scanner;

public class Main2 {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in 

);
		int[] arr=new int[5];
		String str=null;
		
		while(true){
			String choice=sc.next();
			try{
				if(choice.equals("arr")){
					int x=sc.nextInt();
					arr[x] = 1;
				}else if(choice.equals("null")){
					str.length();
				}else if(choice.equals("cast")){
					Object x = new String("x");
					Integer i=(Integer) x;
				}else if(choice.equals("num")){
					String x1=sc.next();
					Integer.parseInt(x1);
				}
			}catch(Exception e){
				System.out.println(e);
			}

		}

	}
}

